package com.download.database;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.support.annotation.Nullable;

/**
 * Created by chensuilun on 2019/3/27.
 */
@Entity(tableName = "ts_key")
public class TsKey {
    static final String COL_KEY = "key";
    static final String COL_IV = "iv";

    @ColumnInfo(name = "key")
    @Nullable
    private byte[] mKey;

    @ColumnInfo(name = "iv")
    @Nullable
    private byte[] mIv;


    public TsKey(@Nullable byte[] key, @Nullable byte[] iv) {
        this.mKey = key;
        this.mIv = iv;
    }

    @Nullable
    public byte[] getIv() {
        return mIv;
    }

    @Nullable
    public byte[] getKey() {
        return mKey;
    }
}
